package com.xbongbong.pro.form.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author 吴峰
 * @version v1.0
 * @date 2019/5/5 9:19
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class RuleTargetPojo implements Serializable {

    private static final long serialVersionUID = -7817232515898369474L;

    @NotNull(message = "{pojo.msg.ActiveRule.ruleTarget.appId.NotNull}")
    private Long appId;

    /**
     * 菜单id
     */
    @NotNull(message = "{pojo.msg.ActiveRule.ruleTarget.menuId.NotNull}")
    private Long menuId;

    /**
     * 表单id
     */
    @NotNull(message = "{pojo.msg.ActiveRule.ruleTarget.formId.NotNull}")
    private Long formId;

    /**
     * 表单名称
     */
    private String name;

    /**
     * 表单id
     */
    @NotNull(message = "{pojo.msg.ActiveRule.ruleTarget.linkSaasMark.NotNull}")
    private Integer linkSaasMark;
    /**
     * 表单id
     */
    @NotNull(message = "{pojo.msg.ActiveRule.ruleTarget.linkBusinessType.NotNull}")
    private Integer linkBusinessType;

    public RuleTargetPojo() {
    }

    public RuleTargetPojo(@NotNull(message = "{pojo.msg.ActiveRule.ruleTarget.appId.NotNull}") Long appId, @NotNull(message = "{pojo.msg.ActiveRule.ruleTarget.menuId.NotNull}") Long menuId, @NotNull(message = "{pojo.msg.ActiveRule.ruleTarget.formId.NotNull}") Long formId, String name, @NotNull(message = "{pojo.msg.ActiveRule.ruleTarget.linkSaasMark.NotNull}") Integer linkSaasMark, @NotNull(message = "{pojo.msg.ActiveRule.ruleTarget.linkBusinessType.NotNull}") Integer linkBusinessType) {
        this.appId = appId;
        this.menuId = menuId;
        this.formId = formId;
        this.name = name;
        this.linkSaasMark = linkSaasMark;
        this.linkBusinessType = linkBusinessType;
    }
}
